package com.lcredu.dao.impl;

import com.lcredu.dao.AdminDAO;
import com.lcredu.dao.BasicDAO;
import com.lcredu.entity.Admin;

/**
 * @author 黎长容
 * @date 2025-07-06 12:34
 */
public class AdminDAOImpl extends BasicDAO<Admin> implements AdminDAO {
    @Override
    public Admin getAdmin(String username, String password) {
        String sql = "select * from admin where username = ? and password = MD5(?);";
        Admin admin = querySingle(sql, Admin.class, username, password);
        return admin;
    }
}
